<style type="text/css">
	.sm_paginator_item_empty.fanpage {
		margin: 0 0 20px;
		width: 100%;
	}
	.sm_paginator_item_empty {
		border: 1px solid #DADADA;
		color: #999999;
		float: left;
		font-weight: bold;
		margin: 5px 2% 20px;
		padding: 150px 0;
		text-align: center;
		vertical-align: middle;
		width: 96%;
	}
</style>
<?php
$payment = Payment_Manager::getInstance();
$idPage = $this->social->getIdPage();
$trial = $payment->getHandlerByCode(Payment_Item_Trial::CODE);
?>
<?php $campaign = $payment->getHandlerByCode(Payment_Item_Campaign::CODE); ?>
<?php if ($campaign->isValid($idPage)): ?>
	<?php if(!$campaign->hasRecord()):?>
		<?php if (!$trial->isValid($idPage)): ?>
								<!--free trial-->
								<span>Free trial: expired</span>
								[ <a href="http://media.younetco.com/contact-us" target="_blank">Upgrade</a> ]
							</div>
						</div>
						<div style="padding-right: 2px;">
							<div class="sm_paginator_item_empty fanpage">
								<?php echo $this->translate('UNDER_CONSTRUCTION');?>   
							</div>
						</div>			
					</div>
						<div class="ym_footer" style="clear: both">
							<div class="footer_contain_img">
								<a class="footer_img" target="_blank" href="<?php echo $this->social->getAppUrl() ?>"> </a>
							</div>
						</div>
					</body>
				</html>
			<?php exit(); ?>
		<?php else:?>
		    <?php $days_left = $payment->getDaysLeft($this->social->getIdPage(), Payment_Item_Trial::CODE);?>
			<span>Free trial: <?php echo $days_left; ?> <?php echo ($days_left==1)? $this->translate('DAY_LEFT') : $this->translate('DAYS_LEFT');?></span>
			[ <a href="http://media.younetco.com/contact-us" target="_blank"><?php echo $this->translate('LABEL_UPGRADE');?></a> ]
		<?php endif;?>
	<?php else:?>
		<?php $days_left = $payment->getDaysLeft($this->social->getIdPage(), Payment_Item_Campaign::CODE);?>
		<span>Paid campaign: <?php echo $days_left; ?> <?php echo ($days_left==1)? $this->translate('DAY_LEFT') : $this->translate('DAYS_LEFT');?></span>
		[ <a href="http://media.younetco.com/contact-us" target="_blank"><?php echo $this->translate('LABEL_UPGRADE');?></a> ]
	<?php endif;?>
<?php else:?>
	<span>Paid Campaign: expired</span>
	[ <a href="http://media.younetco.com/contact-us" target="_blank"><?php echo $this->translate('LABEL_UPGRADE');?></a> ]
<?php endif; ?>